package superman.app.gr100.biz.gr_expapp;

import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * Created by Scor on 2015/12/4.
 */
public class FragmentSetting extends Fragment implements View.OnClickListener {
    private LinearLayout baseinfo;
    private LinearLayout carray_gather;
    private LinearLayout carray_list;
    private LinearLayout version;
    private LinearLayout share;
    @Override
    public View onCreateView(LayoutInflater inflater,ViewGroup viewGroup,Bundle savedInstanceState){
        View view = inflater.inflate(R.layout.fragment_setting,viewGroup,false);
        baseinfo = (LinearLayout) view.findViewById(R.id.user_base_info);
        carray_gather = (LinearLayout) view.findViewById(R.id.carray_gather);
        carray_list = (LinearLayout) view.findViewById(R.id.carray_list);
        share = (LinearLayout) view.findViewById(R.id.share);
        version = (LinearLayout) view.findViewById(R.id.version_update);
        baseinfo.setOnClickListener(this);
        carray_gather.setOnClickListener(this);
        carray_list.setOnClickListener(this);
        share.setOnClickListener(this);
        version.setOnClickListener(this);
        return  view;
    }



    @Override
    public void onClick(View v){
        switch (v.getId()){
            case R.id.share:
                Log.d("scor","share");
                break;
            case R.id.user_base_info:
                Log.d("scor","user_base_info");
                break;
            case R.id.carray_gather:
                Log.d("scor","carray_gather");
                break;
            case R.id.carray_list:
                Log.d("scor","list");
                break;
            case R.id.version_update:
                Log.d("scor","version_update");
                break;

            default:
                break;
        }
    }
}
